<?php

class Hardy_view
{
	private $view;
	
	function __construct($view_name='main')
	{
		$this->view = $view_name;
	}
	
	public function render(&$data)
	{
		global $Hardy_config;
		include $Hardy_config['view_dir'].$this->view.'_view.php';
	}
}

?>